<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Member/appointmentindex')}">管理列表</a></li>
			<li><a href="{:url('Member/appointmentaddlist')}">添加预约</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('Member/appointmentindex')}">
            <input type="text" class="form-control" name="user_login" style="width: 120px;" value="{:input('request.keyword')}" placeholder="代理手机号"> 
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('Member/appointmentindex')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
                                        <th>所属店铺</th>
					<th>定金</th>
					<th>是否可退</th>
					<th>预约前提示</th>
                                        <th>预约后提示</th>
                                        <th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
				<tr>  
                                    <td>{$vo.shop_name}</td>
                                    <td>{$vo.money}</td>
                                    <td>
                                        <if condition="$vo['back'] eq 1">
                                                <a href="{:url('member/appointmentban',array('id'=>$vo['apm_guid']))}" class="js-ajax-dialog-btn" data-msg="你确定将会员关闭吗?">开启</a>
                                        <else />
                                                <a href="{:url('member/appointmentBango',array('id'=>$vo['apm_guid']))}" class="js-ajax-dialog-btn" data-msg="你确定将会员开启吗?">关闭</a>
                                        </if>
                                    </td>
                                    <td>{$vo.start_content}</td>
                                    <td>{$vo.end_content}</td>
                                    <td>
                                        <a href="{:url('Member/appointmentdelete',array('nav_id'=>$vo['apm_guid']))}">删除</a>
                                        <a href="{:url('Member/appointmentupdatelist',array('nav_id'=>$vo['apm_guid']))}">修改</a>
                                    </td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>